<template>
  <div>
    <h3>Music</h3>
    <ul>
      <li v-for="item in list" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Music",
  props: ["id"],
  computed: {
    list() {
      switch (this.id) {
        case "1":
          return ["晴天", "七里香", "简单爱"];
        case "2":
          return ["月半小夜曲", "海阔天空", "红日"];
        case "3":
          return ["Sugar", "Maps", "I Like To Dance"];
        default:
          return [];
      }
    },
  },
};
</script>

<style>
</style>